﻿@{
    Layout = null;
}
<!DOCTYPE html> 
<html>
    <head>
        <title>@Language.Get("客户管理")</title>
        @Html.Partial("commonMeta")
        <link rel="stylesheet" href="~/css/product.css?v=@Wholesaler.Common.Version.Get" />
        <link href="~/Css/stock.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet" />
        <link href="~/css/libs/multiple-select.css" rel="stylesheet"> 
        <link href="~/Css/teamorder.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet"/>
        <link href="~/Css/stock_app.css?v=@Wholesaler.Common.Version.Get" rel="stylesheet"/>
        <style type="text/css">
            #control_id,#control_id_role{
                position: relative;
                height: 29px;
                width: 209px;
                border: 1px solid #cccccc;
                border-radius: 3px;
                line-height: 29px;
                padding-left: 10px;
                left:80px;
                top:-23px
            }
            .control_ul{
                width: 205px;
                position: absolute;
                left: 0;
                top:29px;
                background: #ffffff;
                border: 1px solid #eeeeee;
                border-radius: 3px;
                padding: 10px 0;
                max-height:125px;
                overflow-y: auto;
                z-index: 999;
            }
            .control_ul .control_li{
                padding-left: 10px;
                width: 100%;
                height:20px;
            }
        </style>
    </head>
    <body>
    	<div class="views">
			<div class="view view-main">
				<div class="navbar">
					<div class="navbar-inner">
			            <header id="common_header">
			                <div class="menu_icon_box" id="show_menu_btn">
			                	<em class="menu-btn"></em>
			                </div>
			                <div class="menu_icon_box" id="hide_menu_btn">
			                	<em class="colse-nav-btn"></em>
			                </div>			 
			                <h2>@Language.Get("客户管理")</h2>
			            </header>
            			@Html.Partial("teammenu")
            			<div class="subnavbar" style="display: block;padding: 0;height:auto;background-color: #fff;padding-top: 5px;">
	            			<div class="list_status clearfix" id="_sysStatus">
			                   	<ul>
			                   		<li data-value="">@Language.Get("全部")</li>
				                    <li data-value="1" class="add_blue">@Language.Get("正常")</li>
				                    <li data-value="2">@Language.Get("待审") (<b id="wait_customer">0</b>)</li>
				                    <li data-value="0">@Language.Get("禁用")</li>
				                    <li data-value="-1">@Language.Get("已删")</li>
			                  	</ul>
			                  	<span id="show_term_btn" class="add_blue">@Language.Get("筛选")</span>
			                </div>
			
			                <div class="check_btn_box li_btn_box clearfix">
			                   <ul class="check_list">
                                    <li class="customer_move"><button class="search_btn_b" id="transfer" disabled="disabled">@Language.Get("移交")</button></li> <!--onclick='ModifySalesUserID_Js();' -->
                                    @{
                                   if(Wholesaler.Common.CommonPage.GetIsHideSupplier() =="1"){
                                        <li class="customer_supplier"><button class="search_btn_b" id="role_btn" disabled="disabled">@Language.Get("供应商角色")</button></li>
                                   }
                                   }
                                    <li class="customer_discounts"><button class="search_btn_b" id="discounts_btn" disabled="disabled">@Language.Get("优惠")</button></li>
				                    <li class="customer_add"><span class="add add_blue add_min" id="add_btn">@Language.Get("添加客户")</span></li>
			                    </ul>
			                </div>
			                <table class="product_table" id="product_table_fixed">
		                        <thead>
		                            <tr>
                                    	<th style='width:8%' class="check_rel" id="th_check_all">
			                            	<div class='check_list_box'>
					                    		<span class='checkbox' name='checkbox_all'></span>
					                    	</div>
			                            </th>
                                        <th class='nickname' style='width:12%'>@Language.Get("简称")</th>
                                        <th style='width:12%'>@Language.Get("全称")</th>
                                        <th style='width:10%'>@Language.Get("状态")</th><!--<i class="sort sort_normal" data-sort="SysStatus"></i>-->
                                        <th title="@Language.Get("登录次数")" style='width:10%'>@Language.Get("次数")<i class="sort sort_normal" data-sort="LoginCount"></i></th>
                                        <th title="@Language.Get("上传登录时间")" style='width:12%'>@Language.Get("近期")</th><!--<i class="sort sort_asc" data-sort-direct="asc" data-sort="LastActiveTime"></i>-->
                                        <th style='width:10%'>@Language.Get("业务")</th>
                                        <th style='width:10%'>@Language.Get("采购")</th>
                                        <th title="@Language.Get("到期日期")" style='width:10%'>@Language.Get("到期")</th><!--<i class="sort sort_normal" data-sort="ValidDate"></i>-->
                                        <!--<th style='width:15%'>操作</th>-->
                                    </tr>
		                        </thead>
		                        <tbody id="stock_body_hide">
		
		                        </tbody>
		                    </table>
			            </div>
					</div>
			    </div> 
				<div class="pages navbar-through toolbar-through">
		          	<div data-page="index" class="page">
				        <!--内容区start-->
						<div class="page-content" id="app_no_header">			
					         @* 库存列表start *@
			                <div id="inventory" style="background-color: #fff;">
		                        <table class="product_table table_hide" id="product_table" style="margin-top:8px">
	                                <thead>
	                                    <tr>
	                                        <th style='width:8%'></th>
	                                        <th class='nickname' style='width:12%'>@Language.Get("简称")</th>
	                                        <th style='width:12%'>@Language.Get("全称")</th>
	                                        <th style='width:10%'>@Language.Get("状态")<i class="sort sort_normal" data-sort="SysStatus"></i></th>
	                                        <th title="@Language.Get("登录次数")" style='width:10%'>@Language.Get("次数")<i class="sort sort_normal" data-sort="LoginCount"></i></th>
	                                        <th title="@Language.Get("上传登录时间")" style='width:12%'>@Language.Get("近期")<i class="sort sort_asc" data-sort-direct="asc" data-sort="LastActiveTime"></i></th>
	                                        <th style='width:10%'>@Language.Get("业务")</th>
	                                        <th style='width:10%'>@Language.Get("采购")</th>
	                                        <th title="@Language.Get("到期日期")" style='width:10%'>@Language.Get("到期")<i class="sort sort_normal" data-sort="ValidDate"></i></th>
	                                        <!--<th style='width:15%'>操作</th>-->
	                                    </tr>
	                                </thead>
	                                <tbody id="stock_body">
	
	                                </tbody>
	                            </table>
		                   </div>					
			                <p class="totalcount">@Language.Get("显示前500条")<!--<a class="diasType"></a>--></p>      
        				</div>
        				<!--内容区end-->
		       		</div>
		       </div>
		       
<!-- 移交客户start --->
<div class="popup popup_ModifySalesUserID_box">
<!--<div class="pop_box_bg ModifySalesUserID_box">-->
    <!-- w1  -->
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("移交客户")</h5>
        <form class="form-inline _transfer" style="padding: 5px 5px 5px 30px;" id="_transfer" method="post">
            <label class="checkbox-inline">@Language.Get("请选择业务")：</label>
            <select id="_salesUserIDs" class="form-control list_search" name="SalesUserID"></select>
           <div class="form-btn">
           	 <input type="submit" class="btn btn-danger supbtn cancel_btn close-popup" value="@Language.Get("取消")" />
            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />
            </div>                    <!-- onclick="TransferCustomer();" -->
        </form>
    </div>
</div>
<!-- 移交客户end --->
<!-- 分销start --->
<div class="popup popup_Dist_box">
<!--<div class="pop_box_bg Dist_box">-->
    <!-- w1  -->
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("分销")</h5>
        <form class="form-inline _transfer" style="padding: 5px 5px 5px 30px;" id="_Dist" method="post">
        	<div class="form-group">
                <label for="CustomerKey">@Language.Get("分销密钥")：</label>
                <input class="form-control" type="text" name="CustomerKey" id="_customerkey" placeholder="@Language.Get("分销密钥")" />
           </div>
           <div class="form-group">
                <label for="CustomerKey">@Language.Get("到期日期")：</label>
                <div class="list-block" style="margin: 0;">
				  <ul>
				    <li>
				      <div class="item-content" style="padding-left: 0;">
				        <div class="item-inner">
				          <div class="item-input">
				            <input type="text" name="ValidDate" class="date_input form-control" placeholder="@Language.Get("有效日期")" readonly id="_validDate">
				          </div>
				        </div>
				      </div>
				    </li>
				  </ul>
				</div>
            </div>
			<div class="form-btn">
           	 	<input type="button" class="btn btn-danger supbtn cancel_btn close-popup" value="@Language.Get("取消")" />
           		 <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />
            </div>       
        </form>
    </div>
</div>
<!-- 分销end --->
<!-- 审核客户start --->
<div class="popup popup_Active_box">
<!--<div class="pop_box_bg Active_box">-->
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("审核客户")</h5>
        <form class="form-inline" id="activecustomer_form"  method="post">
            <div class="form-group" style="display: none">
                <label for="CustomerID" class="purchase-text"></label>
                <input type="text" class="form-control" id="active_customerID" placeholder="@Language.Get("客户号")" name="CustomerID">
            </div>
            <div class="form-group">
                <label for="UserName" class="purchase-text"><b class="star_tip">*</b>@Language.Get("帐号")：</label>
                <input type="text" class="form-control" id="active_userName" placeholder="@Language.Get("帐号")" name="UserName">
            </div>
            <div class="form-group">
                <label><b class="no_null">*</b>@Language.Get("密码")：</label>
                <input type="password" class="form-control" id="active_userPassword" placeholder="@Language.Get("密码")" name="UserPassword" />
            </div>
            <div class="form-group">
                <label for="NickName" class="purchase-text"><b class="star_tip">*</b>@Language.Get("公司简称")：</label>
                <input type="text" class="form-control" id="active_nickName" placeholder="@Language.Get("公司简称")" name="NickName">
            </div>
            <div class="form-group">
                <label for="NickName" class="purchase-text">@Language.Get("公司全称")：</label>
                <input type="text" class="form-control" placeholder="@Language.Get("公司全称")" name="CompanyName">
            </div>
            <div class="form-group">
                <label for="Introducer" class="purchase-text">@Language.Get("介绍人")：</label>
                
                	<input type="text" class="form-control" id="active_introducer" placeholder="@Language.Get("介绍人")" name="Introducer">
                             
            </div>
            <div class="form-group">
                <label for="NickName" class="purchase-text">@Language.Get("业务")：</label>
                <select id="active_sales" class="form-control list_search" name="SalesUserID"></select>
            </div>
            <div class="form-group">
                <label for="Mobile" class="purchase-text">Mobile：</label>
                <input type="text" class="form-control" id="active_mobile" placeholder="Mobile" name="Mobile">
            </div>
            <div class="form-group">
                <label for="Sex" class="purchase-text">@Language.Get("性别")：</label>
                <select class="form-control" name="Sex" id="active_sex">
                    <option value="2" selected="selected">@Language.Get("保密")</option>
                    <option value="1">@Language.Get("男")</option>
                    <option value="0">@Language.Get("女")</option>
                </select>
            </div>
            <div class="form-group">
                <label for="QQ" class="purchase-text">QQ：</label>
                <input type="text" class="form-control" id="active_qq" placeholder="QQ" name="QQ">
            </div>
            <div class="form-group">
                <label for="Email" class="purchase-text">Email：</label>
                <input type="text" class="form-control" id="active_email" placeholder="Email" name="Email">
            </div>
            <div class="form-group">
                <label for="Url" class="purchase-text">@Language.Get("网站")：</label>
                <input type="text" class="form-control" id="active_url" placeholder="@Language.Get("网站")" name="Url">
            </div>
            <div class="form-group">
                <label for="SysStatus" class="purchase-text"><b class="star_tip">*</b>@Language.Get("状态")：</label>
                <select class="form-control" name="SysStatus" id="active_sysStatus">
                    <option value="1" selected="selected">@Language.Get("正常")</option>
                    <option value="2">@Language.Get("待审")</option>
                    <option value="-1">@Language.Get("删除")</option>
                </select>
            </div>
            <div class="form-group">
	            <label>@Language.Get("优惠倍率")：</label>
	            <input type="number" class="form-control" id="form_Discounts" value="1" placeholder="@Language.Get("98折，写入0.98")" name="Discounts">
	        </div>
            <div class="form-group" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")==true?"block":"none")">
                <label for="Rebate" class="purchase-text"><b class="star_tip">*</b>@Language.Get("白钻加点")：</label>
                <input type="text" class="form-control" id="active_rebate" placeholder="@Language.Get("白钻加点")" name="Rebate">
            </div>
            <div class="form-group" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")==true?"block":"none")">
                <label for="FancyRebate" class="purchase-text"><b class="star_tip">*</b>@Language.Get("彩钻倍率")：</label>
                <input type="text" class="form-control" id="active_fancyRebate" placeholder="@Language.Get("彩钻倍率")" name="FancyRebate">
            </div>
    		<div class="form-group" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("parcel")==true?"block":"none")">
                <label class="purchase-text"><b class="star_tip">*</b>@Language.Get("统包倍率")：</label>
                <input type="text" class="form-control" placeholder="@Language.Get("统包倍率")" name="ParcelRebate">
            </div>
    		<div class="form-group" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("ring")==true?"block":"none")">
                <label class="purchase-text"><b class="star_tip">*</b>@Language.Get("成品倍率")：</label>
                <input type="text" class="form-control" placeholder="@Language.Get("成品倍率")" name="RingRebate">
            </div>
    		<div class="form-group" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("gem")==true?"block":"none")">
                <label class="purchase-text"><b class="star_tip">*</b>@Language.Get("彩宝倍率")：</label>
                <input type="text" class="form-control" placeholder="@Language.Get("彩宝倍率")" name="GemRebate">
            </div>
    		<div class="form-group" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("emerald")==true?"block":"none")">
                <label class="purchase-text"><b class="star_tip">*</b>@Language.Get("翡翠倍率")：</label>
                <input type="text" class="form-control" placeholder="@Language.Get("翡翠倍率")" name="EmeraldRebate">
            </div>
    		<div class="form-group" style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("primeGold")==true?"block":"none")">
                <label class="purchase-text"><b class="star_tip">*</b>@Language.Get("素金倍率")：</label>
                <input type="text" class="form-control" placeholder="@Language.Get("素金倍率")" name="PrimeGoldRebate">
            </div>
            <div class="form-group"  >
                <label for="PrimeGoldRebate"  id="active_inlaysbate_switch" data-type="1" style="width:90px;"><b class="switch_icon"></b>
                    <span id="active_inlaysbate_switch_title">@Language.Get("空托倍率")：</span></label>
                <div style="display: inline-block" id="active_inlaysRebate">
                    <input type="number" class="form-control" style="width:200px" id="active_inlaysettingsRebate" placeholder="@Language.Get("空托倍率")" name="InlaySettingsRebate">
                </div>
                <div style="display: none;position: relative" id="active_inlaysDiscounts">
                    <span style="position: absolute;left: 100px;top: -30px;color:red">在原基础上调价</span>
                    <div class="form-group">
                        <label for="GoldPrice" style="color:red">金价:</label>
                        <input type="number" class="form-control" value="0" id="active_goldPrice" placeholder="@Language.Get("金价")" name="GoldPrice">
                    </div>
                    <div class="form-group">
                        <label for="LaborFee" style="color:red">损耗%:</label>
                        <input type="number" class="form-control" value="0" id="active_wastage"  placeholder="@Language.Get("损耗%")" name="Wastage">
                    </div>
                    <div class="form-group">
                        <label for="SideLaborFee" style="color:red">副石工费:</label>
                        <input type="number" class="form-control" value="0" id="active_sideLaborFee" placeholder="@Language.Get("副石工费")" name="SideLaborFee">
                    </div>
                    <div class="form-group">
                        <label for="LaborFee">工费:</label>
                        <input type="number" class="form-control" value="1" id="active_laborFee" placeholder="@Language.Get("工费")" name="LaborFee">
                    </div>
                    <div class="form-group">
                        <label for="SidePrice">副石额:</label>
                        <input type="number" class="form-control" value="1" id="active_sidePrice" placeholder="@Language.Get("副石额")" name="SidePrice">
                    </div>
                    <div class="form-group">
                        <label for="Insurance">保险费:</label>
                        <input type="number" class="form-control" value="1" id="active_insurance" placeholder="@Language.Get("保险费")" name="Insurance">
                    </div>
                </div>
            </div>
            <!--<div class="form-group input_button_div" style="height:29px">-->
                <!--<label>@Language.Get("供应商角色")：</label>-->
                <!--<div class="form-control" type="text" id="active_control_id"></div>-->
            <!--</div>-->
            <div class="form-group">
                <label><b class="no_null">*</b>@Language.Get("负责人")：</label>
                <input type="text" class="form-control" placeholder="@Language.Get("负责人")" name="Principal">
            </div>
            <div class="form-group">
                <label><b class="no_null">*</b>@Language.Get("经营")：</label>
                <input type="text" class="form-control" placeholder="@Language.Get("经营")" name="Manager">
            </div>
            <div class="form-group">
                <label for="Comments" class="purchase-textarea cus_textarea">@Language.Get("备注")：</label>
                <textarea class="form-text" id="active_comments" placeholder="@Language.Get("备注")" name="Comments" cols="60" rows="2"></textarea>
            </div>
            <div class="form-btn">
           	 	<input type="button" class="btn btn-danger supbtn cancel_btn close-popup" value="@Language.Get("取消")" name="cancel"/>
            	<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" name="sure"/>
             </div>
            <!-- onclick="ActiveCustomer(this);"-->
        </form>
    </div>
</div>
<!-- 审核客户end --->
<!--申请提现start-->
<div class="popup Cash_box">
<!--<div class="pop_box_bg Cash_box">-->
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("申请提现")</h5>
        <form class="form-inline _cash" style="padding: 5px 5px 30px 30px;" method="post">
        	<div class="form-group" style="display: none;">
                <input class="form-control" type="text" name="CustomerID" id="_customID" placeholder="@Language.Get("客户ID")" readonly="readonly" />
            </div>    
            <div class="form-group">    
                <label for="NickName" class="purchase-text">@Language.Get("公司简称")：</label>
                <input class="form-control" type="text" name="NickName" id="_nickNa" placeholder="@Language.Get("公司简称")" readonly="readonly" />
        	</div>
       
           <!--<div class="form-group"> 
                <label for="RealName" class="purchase-text">@Language.Get("客户名字")：</label>
                <input class="form-control" type="text" name="RealName" id="_realNam" placeholder="@Language.Get("客户名字")" readonly="readonly" />
            </div> -->
            <div class="form-group CurrentRMB" id="bala_box">
                <label for="Balance" class="purchase-text">@Language.Get("当前￥余额")：</label>
                <input class="form-control" type="text" name="Balance" id="_bala" placeholder="@Language.Get("客户当前余额")" readonly="readonly" />
                <input type="hidden" id="_bala_hidden" value="1"  />
            </div>
            <div class="form-group CurrentUSD" id="usdBala_box">
                <label for="Balance" class="purchase-text">@Language.Get("当前$余额")：</label>
                <input class="form-control" type="text" name="USDBalance" id="_usdBala" placeholder="@Language.Get("客户当前余额")" readonly="readonly" />
            </div>
            <div class="form-group">
                <label class="purchase-bank">@Language.Get("银行账户")：</label>
                <div class="account-radio" id="_bankID2">
                </div>
            </div>

            <div class="form-group">
                <label for="Abstract" class="purchase-text">@Language.Get("操作类型")：</label>
                <input style="width:40px;" type="radio" name="Abstract" value="5" checked="checked" />@Language.Get("余额提现")
            </div>
            <div class="form-group">
                <label for="Amount" class="purchase-text"><b style="color:red;">@Language.Get("提现金额")：</b></label>
                <input class="form-control" type="number" name="Amount" id="tamount" placeholder="@Language.Get("提现金额")" />
            </div>
            <div class="form-group">
                <label for="ArrivalTime" class="purchase-text">@Language.Get("到款日期")：</label>
                 <div class="list-block" style="margin: 0;">
				  	<ul>
					    <li>
					      <div class="item-content" style="padding-left: 0;">
					        <div class="item-inner">
					          <div class="item-input">
					            <input type="text" class="date_input" name="ArrivalTime"  readonly id="tarrivalTime">
					          </div>
					        </div>
					      </div>
					    </li>
				  	</ul>
				</div>
                <!--<input type="text" class="form-control time_input" id="tarrivalTime" placeholder="2016-12-10" name="ArrivalTime" />-->
            </div>  
            <div class="form-group">
                <label for="Remarks" class="purchase-textarea cus_textarea">@Language.Get("申请备注")：</label>
                <textarea class="form-text" rows="2" cols="40" id="tremarks" placeholder="@Language.Get("示范：提现工商88元，请审核。")" name="Remarks"></textarea>
            </div>
            <div style="clear:both"></div>
            <div class="form-btn">
	            <input type="button" class="btn btn-danger supbtn cancel_btn close-popup" value="@Language.Get("取消")"/>
	            <input type="reset" style="display: none;" />
	            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />
            </div>                    <!-- onclick="ApplyCash();" -->
            <em>@Language.Get("提现金额不能大于当前余额")</em>
        </form>
    </div>
</div>
<!--申请提现end -->
 <!--调节余额start-->
 <div class="popup Adjust_box">
<!--<div class="pop_box_bg Adjust_box">-->
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("余额调节")</h5>
        <form class="form-inline _adjust" method="post">
        	<div class="form-group" style="display: none;">
                <label class="checkbox-inline">
                    <input class="form-control" type="text" name="CustomerID" id="adjust_cuID" placeholder="@Language.Get("客户ID")" readonly="readonly" />
                </label>
            </div>
            <div class="form-group">
                <label for="NickName" class="purchase-adjust">@Language.Get("公司简称")：</label>
                <input style="width:52%" class="form-control" type="text" name="NickName" id="_nickNam" placeholder="@Language.Get("公司简称")" readonly="readonly" />
            </div>
            <!--<div class="form-group">
                <label for="RealName" class="purchase-adjust">@Language.Get("客户名字")：</label>
                <input class="form-control" type="text" name="RealName" id="_reNam" placeholder="@Language.Get("客户名字")" readonly="readonly" />
            </div>-->
             <div class="form-group">
                <label for="Balance" class="purchase-adjust">@Language.Get("当前￥余额")：</label>
                <input style="width:52%" class="form-control" type="text" name="Balance" id="_ba" placeholder="@Language.Get("客户当前人民币余额")" readonly="readonly" />
            </div>
             <div class="form-group">
                <label for="Amount" class="purchase-adjust"><b style="color: red;">@Language.Get("调节￥余额")：</b></label>
                <input style="width:52%" class="form-control" type="number" name="Amount" id="adjustamount" placeholder="@Language.Get("客户实际人民币余额")" />
            </div>
              <div class="form-group">
                <label for="Balance" class="purchase-adjust">@Language.Get("当前$余额")：</label>
                <input style="width:52%" class="form-control" type="text" name="USDBalance" id="_usdba" placeholder="@Language.Get("客户当前美金余额")" readonly="readonly" />
            </div>
             <div class="form-group">
                <label for="Amount" class="purchase-adjust"><b style="color: red;">@Language.Get("调节$余额")：</b></label>
               	<input style="width:52%" class="form-control" type="number" name="USDAmount" id="adjustusdamount" placeholder="@Language.Get("客户实际美金余额")" />
            </div>
            <div class="form-btn">
	            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;"/>
	            <input type="button" class="btn btn-danger supbtn cancel_btn close-popup" value="@Language.Get("取消")" name="x6" />
	            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />
           	</div>                    <!-- onclick="AdjustBalance();" -->
        </form>
    </div>
</div>
<!--调节余额end -->
  <!--申请充值start-->
<div class="popup Balance_box">
<!--<div class="pop_box_bg Balance_box">-->
<div class="pop">
<span class="colse_popbox close-popup">X</span>
<h5>@Language.Get("申请充值人民币")</h5>
<form class="form-inline _balance" style="padding: 5px 5px 5px 30px;" method="post">
    <label class="checkbox-inline" style="display:none;">
        <input class="form-control" type="text" name="CustomerID" id="_custID" placeholder="@Language.Get("客户ID")" readonly="readonly" />
    </label>
    <!--<div class="form-group">
    	<label for="RealName">@Language.Get("客户名字")：</label>
        <input class="form-control" type="text" name="RealName" id="_realName" placeholder="@Language.Get("客户名字")" readonly="readonly" />
    </div>-->
    <div class="form-group">
    	<label for="Balance">@Language.Get("当前余额")：</label>
        <input class="form-control" type="text" name="Balance" id="_bal" placeholder="@Language.Get("客户当前余额")" readonly="readonly" />
    </div>

    <div class="form-group">
        <b style="vertical-align: top;">@Language.Get("银行账户")：</b>
        <div class="account-radio" id="_bankID1"></div>
    </div>
    <div class="form-group">
        <label for="Currency">@Language.Get("结算币种")：</label>
        <input type="radio" name="Currency" value="1" checked="checked" style="width: 30px;"/>@Language.Get("人民币")
    </div>
    <div class="form-group">
        <label for="Abstract">@Language.Get("操作类型")：</label>
        <input type="radio" name="Abstract" value="2" checked="checked" style="width: 30px;"/>@Language.Get("客户充值")
    </div> 
    <div class="form-group">
    	<label for="Amount"><b style="color:red;">@Language.Get("交易金额")：</b></label>
        <input class="form-control" type="number" name="Amount" id="camount" placeholder="@Language.Get("交易金额")" />
    </div>
    <div class="form-group">
    	<label for="ArrivalTime">@Language.Get("到款日期")：</label>
    	 <div class="list-block" style="margin: 0;">
			<ul>
			    <li>
			      <div class="item-content" style="padding-left: 0;">
			        <div class="item-inner">
			          <div class="item-input">
			            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="@Language.Get("到款日期")" readonly id="carrivalTime" required="required">
			          </div>
			        </div>
			      </div>
			    </li>
			</ul>
		</div>
        <!--<input type="text" class="date_input time_input" id="carrivalTime" placeholder="2016-12-10" name="ArrivalTime" />-->
    </div>
    <div class="form-group">
    	<label for="Remarks" class="Remark-textarea">@Language.Get("申请备注")：</label>
        <textarea class="form-text" rows="2" cols="40" id="cremarks" placeholder="" name="Remarks"></textarea>
    </div>
    <div class="form-btn">
     	<input type="button" class="btn btn-danger supbtn cancel close-popup" name="btn" value="@Language.Get("取消")" />
        <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;" />
        <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
    </div>
</form>
</div>
</div>
<!--申请充值end -->

 <!--申请美金充值start-->
<div class="popup USDBalance_box">
<!--<div class="pop_box_bg USDBalance_box">-->
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("申请充值美金")</h5>
        <form class="form-inline _usdbalance" style="padding: 5px 5px 5px 30px;" method="post">
            <label class="checkbox-inline" style="display:none;">
                <input class="form-control" type="text" name="CustomerID" id="_cuID" placeholder="@Language.Get("客户ID")" readonly="readonly" />
            </label>
            <!--<div class="form-group">
            	<label for="RealName">@Language.Get("客户名字")：</label>
                <input class="form-control" type="text" name="RealName" id="_reName" placeholder="@Language.Get("客户名字")" readonly="readonly" />
            </div>-->
            <div class="form-group">
            	<label for="USDBalance">@Language.Get("当前余额")：</label>
                <input class="form-control" type="text" name="USDBalance" id="_usdbal" placeholder="@Language.Get("客户当前余额")" readonly="readonly" />
            </div>
            <div class="form-group">
                <b style="vertical-align: top;">@Language.Get("银行账户")：</b>
                <div class="account-radio" id="_usdbankID"></div>
            </div>
            <div class="form-group">
                <label for="Currency">@Language.Get("结算币种")：</label>
                <input type="radio" name="Currency" value="2" checked="checked" id="_usd" style="width: 30px;"/>@Language.Get("美金")
            </div>
            <div class="form-group">
                <label for="Abstract">@Language.Get("操作类型")：</label>
                <input type="radio" name="Abstract" value="2" checked="checked" style="width: 30px;"/>@Language.Get("客户充值")
            </div>
            <div class="form-group">
            	<label for="Amount"><b style="color:red;">@Language.Get("交易金额")：</b></label>
                <input class="form-control" type="number" name="Amount" id="cusdamount" placeholder="@Language.Get("交易金额")" />
            </div>
            <div class="form-group">
            	<label for="ArrivalTime">@Language.Get("到款日期")：</label>
            	<div class="list-block" style="margin: 0;">
					<ul>
					    <li>
					      <div class="item-content" style="padding-left: 0;">
					        <div class="item-inner">
					          <div class="item-input">
					            <input type="text" class="date_input time_input" name="ArrivalTime" placeholder="@Language.Get("到款日期")" readonly id="cusdarrivalTime" required="required">
					          </div>
					        </div>
					      </div>
					    </li>
					</ul>
				</div>
                <!--<input type="text" class="date_input time_input" id="cusdarrivalTime" placeholder="2016-12-10" name="ArrivalTime" />-->
            </div>
            <div class="form-group">
            	<label for="Remarks" class="Remark-textarea">@Language.Get("申请备注")：</label>
                <textarea class="form-control form-text" rows="3" cols="40" id="cusdremarks" placeholder="" name="Remarks" ></textarea>
            </div>
            <div class="form-btn">
             	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="@Language.Get("取消")" />
	            <input type="reset" class="btn btn-danger supbtn" value="@Language.Get("重置")" style="display:none;" />
	            <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
            </div>     <!-- onclick="ApplyFlow();" -->
        </form>
    </div>
</div>
<!--申请美金充值end -->

<!--客户筛选-->
<div class="popup customer_filter_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("客户筛选")</h5>
         <form class="form-inline" style="padding: 5px 5px 5px 30px;">
         	
            <datalist id="_customerUserName" class="form-control list_search" style="display:none;"></datalist> <!-- 下拉优化 -->
            <div class="form-group">
            	<label>@Language.Get("账号")：</label>
            	<input type="text" id="_userName" list="_customerUserName" class="form-control" placeholder="@Language.Get("帐号")"/>
            </div>
            <datalist id="_customerNickName" class="form-control list_search" style="display:none;"></datalist> <!-- 下拉优化 -->
            <div class="form-group">
            	<label>@Language.Get("公司简称")：</label>
            	<input type="text" id="_nickName" list="_customerNickName" class="form-control" placeholder="@Language.Get("公司简称")"/>
            </div>
            <div class="form-group">
            	<label>@Language.Get("公司全称")：</label>
           	 	<input class="form-control" type="text" placeholder="@Language.Get("公司全称")"  id="_companyName" />
           	</div>
            <div class="form-group">
            	<label>@Language.Get("电话")：</label>
            	<input class="form-control" type="text" placeholder="@Language.Get("电话")"  id="_mobile" />
            </div>
            
           	<div class="form-group">
           		<label>@Language.Get("业务")：</label>
           		<select id="_salesUserID" class="form-control"></select>
           	</div>
           	<div class="form-group">
           		<label>@Language.Get("采购")：</label>
            	<select id="_purchaseUserID" class="form-control"></select>
           	</div>
            <div class="form-btn">
             	<input type="button" class="btn btn-danger supbtn cancel close-popup" value="@Language.Get("取消")" />
	            <input type="button" class="btn btn-danger supbtn" id="confirm_btn" value="@Language.Get("确定")"/>
            </div>
        </form>
   	</div>
</div>
     
<!--客户筛选end-->
<!--客户新增和编辑-->
<div class="popup customer_form_box">
	<div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5 id="customer_form_title">@Language.Get("客户新增")</h5>
		<form class="form-inline" name="addForm" method="post" id="form_data" style="padding: 5px 5px 5px 30px;">
		  	<input type="text" id="id_input" style="display: none;"/> 
	    	<div class="form-group">
	            <label><b class="no_null">*</b>@Language.Get("帐号")：</label>
	            <input type="text" class="form-control" id="add_userName" placeholder="@Language.Get("帐号")" name="UserName">                    <!--  onblur="UserNameIsExist();" -->
	        </div>
	        <div class="form-group">
	            <label><b class="no_null">*</b>@Language.Get("密码")：</label>
	            <input type="password" class="form-control" id="add_userPassword" placeholder="@Language.Get("密码")" name="UserPassword" />
	        </div>
	        <div class="form-group">
	            <label><b class="no_null">*</b>@Language.Get("公司简称")：</label>
	            <input type="text" class="form-control" id="add_nickName" placeholder="@Language.Get("公司简称")" name="NickName">
	        </div>	
			<div class="form-group">
	            <label for="CompanyName" class="purchase-text">@Language.Get("公司全称")：</label>
	            <input type="text" class="form-control" id="add_companyName" placeholder="@Language.Get("公司全称")" name="CompanyName">
	        </div>
	        <div class="form-group">
	            <label><b class="star_tip">*</b>@Language.Get("手机")：</label>
	            <input type="text" class="form-control" id="add_mobile" placeholder="Mobile" name="Mobile">                    <!--  onblur="MobileIsExist();" -->
	        </div>
	        <div class="form-group">
	        	<label><b class="star_tip">*</b>@Language.Get("业务")：</label>                   
	            <select id="combo_sales" class="form-control" name="SalesUserID"></select>
	        </div>
	        <div class="form-group">
	            <label for="Sex" class="purchase-text">@Language.Get("性别")：</label>
	            <select class="form-control" name="Sex" id="add_sex">
	                <option value="2" selected="selected">@Language.Get("保密")</option>
	                <option value="1">@Language.Get("男")</option>
	                <option value="0">@Language.Get("女")</option>
	            </select>
	       </div>
	        <div class="form-group">
	            <label for="QQ" class="purchase-text">QQ：</label>
	            <input type="text" class="form-control" id="add_qq" placeholder="QQ" name="QQ">
	        </div>  	    	     	
	        <div class="form-group">
	            <label for="Email" class="purchase-text">Email：</label>
	            <input type="text" class="form-control" id="add_email" placeholder="Email" name="Email">
	        </div>
	        
	        <div class="form-group">
	            <label for="Url" class="purchase-text">@Language.Get("网站")：</label>
	            <input type="text" class="form-control" id="add_url" placeholder="@Language.Get("网站")" name="Url">
	        </div>
	        <div class="form-group">
	            <label for="SysStatus" class="purchase-text">@Language.Get("状态")：</label>
				<!--<div class="list-block">
				  <ul>
				    <li>
				      <div class="item-content">
				        <div class="item-inner">
				          <div class="item-input">
				            <input type="text" placeholder="状态" class="date_input" readonly id="add_sysStatus">
				          </div>
				        </div>
				      </div>
				    </li>
				  </ul>
				</div> -->
	            <select class="form-control" name="SysStatus" id="add_sysStatus">
	                <option value="1" selected="selected">@Language.Get("正常")</option>
	                <option value="2">@Language.Get("待审")</option>
	                <option value="0">@Language.Get("禁用")</option>
	                <option value="-1">@Language.Get("已删")</option>
	            </select>
	        </div>
	        <div class="form-group">
	            <label>@Language.Get("优惠倍率")：</label>
	            <input type="number" class="form-control" id="add_Discounts" value="1" placeholder="@Language.Get("98折，写入0.98")" name="Discounts">
	        </div>
	        @{
				if(Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")==true){
		    	<div class="form-group">
		            <label for="Rebate" id="rebate_switch" data-type="1"><b class="switch_icon"></b>
		            	<span id="rebate_switch_title">@Language.Get("白钻加点")：</span></label>
		            <input type="number" class="form-control" id="add_rebate" placeholder="@Language.Get("白钻加点,2为加2个点")" name="Rebate">
		        </div>
		        }
		        if(Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")==true){
		        <div class="form-group">
		            <label><b class="no_null">*</b>@Language.Get("彩钻倍率")：</label>
		            <input type="number" class="form-control" id="add_fancyRebate" placeholder="@Language.Get("彩钻倍率,-5为减5个点")" name="FancyRebate">
		        </div>
		        }
		        if(Wholesaler.Common.GetOpenMenu.IsDisplay("parcel")==true){
		        <div class="form-group">
		            <label><b class="no_null">*</b>@Language.Get("统包倍率")：</label>
		            <input type="number" class="form-control" id="add_parcelRebate" placeholder="@Language.Get("统包倍率,2为加2个点")" name="ParcelRebate">
		        </div>
		        }
		        if(Wholesaler.Common.GetOpenMenu.IsDisplay("ring")==true){
		        <div class="form-group">
		            <label><b class="no_null">*</b>@Language.Get("成品倍率")：</label>
		            <input type="number" class="form-control" id="add_ringRebate" placeholder="@Language.Get("成品倍率,-5为减5个点")" name="RingRebate">
		        </div>
		        }
		        if(Wholesaler.Common.GetOpenMenu.IsDisplay("gem")==true){
		        <div class="form-group">
		            <label><b class="no_null">*</b>@Language.Get("彩宝倍率")：</label>
		            <input type="number" class="form-control" id="add_gemRebate" placeholder="@Language.Get("彩宝倍率,-5为减5个点")" name="GemRebate">
		        </div>
				}
				if(Wholesaler.Common.GetOpenMenu.IsDisplay("emerald")==true){
		        <div class="form-group">
		            <label><b class="no_null">*</b>@Language.Get("翡翠倍率")：</label>
		            <input type="number" class="form-control" id="add_emeraldRebate" placeholder="@Language.Get("翡翠倍率,-5为减5个点")" name="EmeraldRebate">
		        </div>
		        }
				if(Wholesaler.Common.GetOpenMenu.IsDisplay("primeGold")==true){
		        <div class="form-group">
		            <label><b class="no_null">*</b>@Language.Get("素金倍率")：</label>
		            <input type="number" class="form-control" id="add_goldsRebate" placeholder="@Language.Get("素金倍率,-5为减5个点")" name="PrimeGoldRebate">
		        </div>
		        }
                if(Wholesaler.Common.GetOpenMenu.IsDisplay("inlaysettings")==true){
                    <div class="form-group"  >
                        <label for="PrimeGoldRebate"  id="inlaysbate_switch" data-type="1" style="width:90px;"><b class="switch_icon"></b>
                            <span id="inlaysbate_switch_title">@Language.Get("空托倍率")：</span></label>
                        <div style="display: inline-block" id="add_inlaysRebate">
                            <input type="number" class="form-control" style="width:200px" id="add_inlaysettingsRebate" placeholder="@Language.Get("空托倍率")" name="InlaySettingsRebate">
                        </div>
                        <div style="display: none;position: relative" id="add_inlaysDiscounts">
                            <span style="position: absolute;left: 100px;top: -30px;color:red">在原基础上调价</span>
                            <div class="form-group">
                                <label for="GoldPrice" style="color:red">金价:</label>
                                <input type="number" class="form-control" value="0" id="goldPrice" placeholder="@Language.Get("金价")" name="GoldPrice">
                            </div>
                            <div class="form-group">
                                <label for="LaborFee" style="color:red">损耗%:</label>
                                <input type="number" class="form-control" value="0" id="wastage"  placeholder="@Language.Get("损耗%")" name="Wastage">
                            </div>
                            <div class="form-group">
                                <label for="SideLaborFee" style="color:red">副石工费:</label>
                                <input type="number" class="form-control" value="0" id="sideLaborFee" placeholder="@Language.Get("副石工费")" name="SideLaborFee">
                            </div>
                            <div class="form-group">
                                <label for="LaborFee">工费:</label>
                                <input type="number" class="form-control" value="1" id="laborFee" placeholder="@Language.Get("工费")" name="LaborFee">
                            </div>
                            <div class="form-group">
                                <label for="SidePrice">副石额:</label>
                                <input type="number" class="form-control" value="1" id="sidePrice" placeholder="@Language.Get("副石额")" name="SidePrice">
                            </div>
                            <div class="form-group">
                                <label for="Insurance">保险费:</label>
                                <input type="number" class="form-control" value="1" id="insurance" placeholder="@Language.Get("保险费")" name="Insurance">
                            </div>
                        </div>
                    </div>
                }
		    }
            @{
            if(Wholesaler.Common.CommonPage.GetIsHideSupplier() =="1"){
                <div class="form-group input_button_div" style="height:29px">
                    <label>@Language.Get("供应商角色")：</label>
                    <div class="form-control" type="text" id="control_id"></div>
                </div>
            }
            }
            <div class="form-group">
                <label><b class="no_null">*</b>@Language.Get("负责人")：</label>
                <input type="text" class="form-control" placeholder="@Language.Get("负责人")" name="Principal">
            </div>
            <div class="form-group">
                <label><b class="no_null">*</b>@Language.Get("经营")：</label>
                <input type="text" class="form-control" placeholder="@Language.Get("经营")" name="Manager">
            </div>
	       <div class="form-group">
	            <label for="Comments" class="purchase-textarea cus_textarea">@Language.Get("备注")：</label>
	            <textarea class="form-text" id="add_comments" placeholder="@Language.Get("备注")" name="Comments" cols="60" rows="2"></textarea>
	        </div>
	        <div style="clear: both;"></div>
	         <!--客户权限开始-->
            <div class="form-group" id="form_power_label_box">
            	<!--<label class="checkbox-inline">@Language.Get("权限")：</label>-->
            	<!--<div class="power_label" style="width:64%;float: right;">-->
	            	<!--<label for="form_power_cert"><input type="checkbox" name="Control_Column_Ids" value="1" id="form_power_cert" />@Language.Get("证书")</label>-->
	            	<!--<label for="form_power_certNo"><input type="checkbox" name="Control_Column_Ids" value="2" id="form_power_certNo" />@Language.Get("证书号")</label>-->
	            	<!--<label for="form_power_Rap"><input type="checkbox" name="Control_Column_Ids" value="3" id="form_power_Rap" />@Language.Get("Rap")</label>-->
	            	<!--<label for="form_power_discount"><input type="checkbox" name="Control_Column_Ids" value="4" id="form_power_discount" />@Language.Get("退点")</label>-->
	            	<!--<label for="form_power_USDperPrice"><input type="checkbox" name="Control_Column_Ids" value="5" id="form_power_USDperPrice" />@Language.Get("$/Ct")</label>-->
	            	<!--<label for="form_power_USDprice"><input type="checkbox" name="Control_Column_Ids" value="6" id="form_power_USDprice" />@Language.Get("$/Pcs")</label>-->
	            	<!--<label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="7" id="form_power_place" />@Language.Get("所在地")</label>-->
	            	<!--<label for="form_power_RMBperPrice"><input type="checkbox" name="Control_Column_Ids" value="8" id="form_power_RMBperPrice" />@Language.Get("￥/Ct")</label>-->
	            	<!--<label for="form_power_RMBprice"><input type="checkbox" name="Control_Column_Ids" value="9" id="form_power_RMBprice" />@Language.Get("￥/Pcs")</label>           		           -->
            		<!--<label for="form_power_OriginSN"><input type="checkbox" name="Control_Column_Ids" value="10" id="form_power_OriginSN" />@Language.Get("原货号")</label>-->
            		<!--<label for="form_power_SN"><input type="checkbox" name="Control_Column_Ids" value="11" id="form_power_SN" />@Language.Get("货号")</label>-->
                    <!--<label for="power_UpdateTime"><input type="checkbox" name="Control_Column_Ids" value="12" id="form_power_UpdateTime" />@Language.Get("上架")</label>-->
                    <!--<label for="power_download"><input  type="checkbox" name="Control_Column_Ids" value="13" id="form_power_download" />@Language.Get("下载")</label>-->
                    <!--<label for="power_print"><input  type="checkbox" name="Control_Column_Ids" value="14" id="form_power_print" />@Language.Get("借货")</label>-->
                    <!--<label for="power_exist"><input  type="checkbox" name="Control_Column_Ids" value="15" id="form_power_exist" />@Language.Get("现货/订货")</label>-->
                    <!--<label for="form_power_usd"><input  type="checkbox" name="Control_Column_Ids" value="18" id="form_power_usd" />@Language.Get("优惠$")</label>-->
                    <!--<label for="form_power_rmb"><input  type="checkbox" name="Control_Column_Ids" value="19" id="form_power_rmb" />@Language.Get("优惠￥")</label>-->
                    <!--<label for="form_power_tablePct"><input  type="checkbox" name="Control_Column_Ids" value="20" id="form_power_tablePct" />@Language.Get("台宽比")</label>-->
                    <!--<label for="form_power_depthPct"><input  type="checkbox" name="Control_Column_Ids" value="21" id="form_power_depthPct" />@Language.Get("全深比")</label>-->
            	<!--</div>-->
            </div>
            <!--客户权限结束-->
           <div class="form-btn">
				<input id="reset_btn" class="btn btn-danger supbtn" type="reset" value="@Language.Get("重置")"/>
				<!--id="submit_btn"-->
				<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")"/>
			</div>
	        <!--</div>-->
		</form>
	</div>
</div>
<!--客户新增和编辑end-->

<!-- 客户权限start --->
<!--<div class="popup" id="power_box">-->
    <!-- w1  -->
    <!--<div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("客户权限")</h5>
        <form class="form-block" style="padding: 5px 5px 5px 30px;" id="_power" method="post">
        	<input type="text" name="CustomerID" id="power_CustomerID" style="display: none;" />
        	<div class="form-group power_label" id="power_label_box">
            	<label class="checkbox-inline">@Language.Get("权限")：</label>
            	<label for="power_cert"><input type="checkbox" name="Control_Column_Ids" value="1" id="power_cert" />@Language.Get("证书")</label>
            	<label for="power_certNo"><input type="checkbox" name="Control_Column_Ids" value="2" id="power_certNo" />@Language.Get("证书号")</label>
            	<label for="power_Rap"><input type="checkbox" name="Control_Column_Ids" value="3" id="power_Rap" />@Language.Get("Rap")</label>
            	<label for="power_discount"><input type="checkbox" name="Control_Column_Ids" value="4" id="power_discount" />@Language.Get("退点")</label>
            	<label for="power_USDperPrice"><input type="checkbox" name="Control_Column_Ids" value="5" id="power_USDperPrice" />@Language.Get("$/Ct")</label>
            	<label for="power_USDprice"><input type="checkbox" name="Control_Column_Ids" value="6" id="power_USDprice" />@Language.Get("$/Pcs")</label>
            	<label for="power_place"><input type="checkbox" name="Control_Column_Ids" value="7" id="power_place" />@Language.Get("所在地")</label>
            	<label for="power_RMBperPrice"><input type="checkbox" name="Control_Column_Ids" value="8" id="power_RMBperPrice" />@Language.Get("￥/Ct")</label>
            	<label for="power_RMBprice"><input type="checkbox" name="Control_Column_Ids" value="9" id="power_RMBprice" />@Language.Get("￥/Pcs")</label>           	
            </div>
            <div class="form-btn">
            	<input type="button" class="btn btn-danger supbtn close-popup" value="@Language.Get("取消")"/>
            	<input type="button" class="btn btn-danger supbtn" id="power_btn" value="@Language.Get("确定")" />  
            </div>
        </form>
    </div>-->
<!--</div>-->
<!-- 客户权限end --->
 <!-- 角色start --->
<div class="popup" id="batch_RoleName_box">
    <!-- w1  -->
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("供应商角色")</h5>
        <form class="form-inline" style="padding: 5px 5px 5px 30px;" id="batch_RoleName_form" method="post">
        	<div class="form-inline-edit" style="width:100%;">
        		<div class="form-group input_button_div">
                    <label style="width:auto">@Language.Get("供应商角色")：</label>
                    <!--<select class="form-control" name="RoleNames" id="batch_RoleName" multiple="multiple">-->
                    <!--</select>-->
                    <div class="form-control" style="left:90px;" type="text" id="control_id_role"></div>
                </div>
                <div class="form-btn">
                	<input type="button" class="btn btn-danger supbtn close-popup" name="qx" value="@Language.Get("取消")"/>
                	<input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />  
                </div>
        	</div>                	
        </form>
    </div>
</div>
<!-- 角色end --->

<!-- 优惠start --->
<div class="popup" id="discounts_box">
    <!-- w1  -->
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("优惠")</h5>
        <form class="form-inline" style="padding: 5px 5px 5px 30px;" id="discounts_form" method="post">
            <div class="form-inline-edit" style="width:100%;">
                <div class="form-group input_button_div">
                    <label style="width:auto">@Language.Get("优惠")：</label>
                    <input type="text" class="form-control" id="_discounts">
                </div>
                <div class="form-btn">
                    <input type="button" class="btn btn-danger supbtn close-popup" name="qx" value="@Language.Get("取消")"/>
                    <input type="submit" class="btn btn-danger supbtn" value="@Language.Get("确定")" />
                </div>
            </div>
        </form>
    </div>
</div>
<!-- 优惠end --->



<!--权限修改产品start-->
<div class="popup power_form_box">
    <div class="pop">
        <span class="colse_popbox close-popup">X</span>
        <h5>@Language.Get("权限编辑")</h5>
        <form class="form-inline" name="addForm" method="post" id="form_data_power" style="padding: 5px 5px 5px 30px;">
            <div class="gems_type" id="change_type">
                <span style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")==true?"block":"none")" class="active"  data-type="1">@Language.Get("裸钻")</span>
                <span style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("inlaysettings")==true?"block":"none")" data-type="7">@Language.Get("空托")</span>
                <span style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("parcel")==true?"block":"none")" data-type="2">@Language.Get("统包")</span>
                <span style="display:@(Wholesaler.Common.GetOpenMenu.IsDisplay("ring")==true?"block":"none")" data-type="3">@Language.Get("成品")</span>
            </div>
            <!--客户权限开始-->
            <div class="form-group" id="form_power_label_box_type" style="margin-top:50px">
                <label class="checkbox-inline" data-type="1" style="min-width:15px">@Language.Get("权限")：</label>
                <div class="form_group power_label" data-type="1" style="display:block;width:80%;float: right;">
                    <label for="form_power_cert"><input type="checkbox" name="Control_Column_Ids" value="1"  />@Language.Get("证书")</label>
                    <label for="form_power_certNo"><input type="checkbox" name="Control_Column_Ids" value="2"  />@Language.Get("证书号")</label>
                    <label for="form_power_Rap"><input type="checkbox" name="Control_Column_Ids" value="3"  />@Language.Get("Rap")</label>
                    <label for="form_power_discount"><input type="checkbox" name="Control_Column_Ids" value="4"/>@Language.Get("退点")</label>
                    <label for="form_power_USDperPrice"><input type="checkbox" name="Control_Column_Ids" value="5"  />@Language.Get("$/Ct")</label>
                    <label for="form_power_USDprice"><input type="checkbox" name="Control_Column_Ids" value="6"  />@Language.Get("$/Pcs")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="7"  />@Language.Get("所在地")</label>
                    <label for="form_power_RMBperPrice"><input type="checkbox" name="Control_Column_Ids" value="8"  />@Language.Get("￥/Ct")</label>
                    <label for="form_power_RMBprice"><input type="checkbox" name="Control_Column_Ids" value="9"  />@Language.Get("￥/Pcs")</label>
                    <label for="form_power_OriginSN"><input type="checkbox" name="Control_Column_Ids" value="10"  />@Language.Get("原货号")</label>
                    <label for="form_power_SN"><input type="checkbox" name="Control_Column_Ids" value="11"  />@Language.Get("货号")</label>
                    <label for="power_UpdateTime"><input type="checkbox" name="Control_Column_Ids" value="12"  />@Language.Get("上架")</label>
                    <label for="power_download"><input  type="checkbox" name="Control_Column_Ids" value="13"  />@Language.Get("下载")</label>
                    <label for="power_print"><input  type="checkbox" name="Control_Column_Ids" value="14" />@Language.Get("借货")</label>
                    <label for="power_exist"><input  type="checkbox" name="Control_Column_Ids" value="15" />@Language.Get("现货/订货")</label>
                    <label for="form_power_usd"><input  type="checkbox" name="Control_Column_Ids" value="18" />@Language.Get("优惠$")</label>
                    <label for="form_power_rmb"><input  type="checkbox" name="Control_Column_Ids" value="19" />@Language.Get("优惠￥")</label>
                    <label for="form_power_tablePct"><input  type="checkbox" name="Control_Column_Ids" value="20"  />@Language.Get("台宽比")</label>
                    <label for="form_power_depthPct"><input  type="checkbox" name="Control_Column_Ids" value="21"  />@Language.Get("全深比")</label>
                </div>
                <div class="form_group power_label" data-type="7" style="display: none;width:80%;float: right;">
                    <label for="form_power_price"><input type="checkbox" name="Control_Column_Ids" value="701"  />@Language.Get("￥/Pcs")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="702"  />@Language.Get("所在地")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="703"  />@Language.Get("优惠￥")</label>
                </div>
                <div class="form_group power_label" data-type="2" style="display: none;width:80%;float: right;" id="form_power_whiteParcel_box" >
                    <label for="form_power_price"><input type="checkbox" name="Control_Column_Ids" value="201"  />@Language.Get("￥/Ct")</label>
                    <label for="form_power_RMBperPrice"><input type="checkbox" name="Control_Column_Ids" value="202"  />@Language.Get("$/Ct")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="208"  />@Language.Get("所在地")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="209"  />@Language.Get("优惠$/Ct")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="210"  />@Language.Get("优惠￥/Ct")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="211"  />@Language.Get("优惠$")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="212"  />@Language.Get("优惠￥")</label>
                </div>
                <div class="form_group power_label" data-type="3" style="display: none;width:80%;float: right;" >
                    <label for="form_power_price"><input type="checkbox" name="Control_Column_Ids" value="301"  />@Language.Get("￥/Pcs")</label>
                    <label for="form_power_RMBperPrice"><input type="checkbox" name="Control_Column_Ids" value="302"  />@Language.Get("$/Pcs")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="308"  />@Language.Get("所在地")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="309"  />@Language.Get("优惠$")</label>
                    <label for="form_power_place"><input type="checkbox" name="Control_Column_Ids" value="310"  />@Language.Get("优惠￥")</label>
                </div>
            </div>

            <!--客户权限结束-->
            <div class="form-btn">
                <input id="" class="btn btn-danger supbtn" type="reset" value="@Language.Get("重置")"/>
                <!--id="submit_btn"-->
                <input type="button" class="btn btn-danger supbtn" id="customer_power_btn" value="@Language.Get("确定")"/>
            </div>
            <!--</div>-->
        </form>
    </div>
</div>
<!--权限修改产品end-->


        
			</div>
		</div>
    </body>   
</html>
@Html.Partial("commonTeamJs")
<script src="~/Js/jquery.validate.min.js"></script>
<script src="~/Js/jquery.form.js"></script>
<script src="~/Js/libs/multiple-select.js"></script>
<script>

	var APP=is_app();
    var roleID = $.cookie("RoleID");//全局变量
    var originRoleID=$.cookie("RoleID");//全局变量
    var sales="";//全局业务变量
    var purchases="";//全局采购变量8-27
    var isDia='@Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")'; 
	isDia=isDia.toLowerCase();
	var isParcel='@Wholesaler.Common.GetOpenMenu.IsDisplay("parcel")'; 
	isParcel=isParcel.toLowerCase();
	var isRing='@Wholesaler.Common.GetOpenMenu.IsDisplay("ring")'; 
	isRing=isRing.toLowerCase();
	var isGem='@Wholesaler.Common.GetOpenMenu.IsDisplay("gem")'; 
	isGem=isGem.toLowerCase();
	var isEmerald='@Wholesaler.Common.GetOpenMenu.IsDisplay("emerald")'; 
	isEmerald=isEmerald.toLowerCase();
	var isPrimeGold='@Wholesaler.Common.GetOpenMenu.IsDisplay("primeGold")'; 
	isPrimeGold=isPrimeGold.toLowerCase();
    var isInlaySettings='@Wholesaler.Common.GetOpenMenu.IsDisplay("inlaysettings")'.toLocaleLowerCase();
    isInlaySettings=isInlaySettings.toLowerCase();

    var roid=$.cookie("RoleID");
    if(roid == 1){
        $('.customer_move,.customer_supplier,.customer_discounts,.customer_add').show();
    }


</script>
<script src="~/Js/sort/sort.js" type="text/javascript"></script>
<script src="~/js/team/customer.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>
<script src="~/Js/team/order_handle.js?v=@Wholesaler.Common.Version.Get" type="text/javascript"></script>
<script src="~/Js/team/orderValidate.js?v=@Wholesaler.Common.Version.Get"></script>



